package marchsoft.modules.four.h5.service.Impl;

import marchsoft.modules.four.h5.mapper.SettingMapper;
import marchsoft.modules.four.h5.service.SettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SettingServiceImpl implements SettingService {
    @Autowired
    private SettingMapper settingMapper;

    @Override
    public void updatePassword (String password,long id){
        settingMapper.updatePassword(password,id);
    };

    @Override
    public String selectPassById(long id){
        return settingMapper.selectPassById(id);
    }

    @Override
    public void getCode(String oldPhone){
        System.out.println(oldPhone);
    }

    @Override
    public String selectPhoneById(long id) {
        return settingMapper.selectPhoneById(id);
    }

    @Override
    public void updatePhone(String phone, long id) {
        settingMapper.updatePhone(phone,id);
    }

    @Override
    public void updateAvatar(long id, String path) {
        settingMapper.updateAvatar(id,path);
    }
}
